home *** CD-ROM | disk | FTP | other *** search
/ QuickTime 2.0 Developer Kit / QuickTime 2.0 Developer Kit.iso / mac / MAC / Programming Stuff / Interfaces / PInterfaces / DiskInit.p < prev    next >
Encoding:
Text File  |  1994-11-11  |  2.3 KB  |  100 lines  |  [TEXT/MPS ]

  1. {
  2.      File:        DiskInit.p
  3.  
  4.      Copyright:    © 1984-1994 by Apple Computer, Inc.
  5.                  All rights reserved.
  6.  
  7.      Version:    Universal Interfaces 2.0a3  ETO #16, MPW prerelease.  Friday, November 11, 1994. 
  8.  
  9.      Bugs?:        If you find a problem with this file, send the file and version
  10.                  information (from above) and the problem description to:
  11.  
  12.                      Internet:    apple.bugs@applelink.apple.com
  13.                      AppleLink:    APPLE.BUGS
  14.  
  15. }
  16.  
  17. {$IFC UNDEFINED UsingIncludes}
  18. {$SETC UsingIncludes := 0}
  19. {$ENDC}
  20.  
  21. {$IFC NOT UsingIncludes}
  22.  UNIT DiskInit;
  23.  INTERFACE
  24. {$ENDC}
  25.  
  26. {$IFC UNDEFINED __DISKINIT__}
  27. {$SETC __DISKINIT__ := 1}
  28.  
  29. {$I+}
  30. {$SETC DiskInitIncludes := UsingIncludes}
  31. {$SETC UsingIncludes := 1}
  32.  
  33.  
  34. {$IFC UNDEFINED __TYPES__}
  35. {$I Types.p}
  36. {$ENDC}
  37. {    ConditionalMacros.p                                            }
  38.  
  39. {$PUSH}
  40. {$ALIGN MAC68K}
  41. {$LibExport+}
  42.  
  43. TYPE
  44.     HFSDefaults = RECORD
  45.         sigWord:                PACKED ARRAY [0..1] OF CHAR;            { signature word }
  46.         abSize:                    LONGINT;                                { allocation block size in bytes }
  47.         clpSize:                LONGINT;                                { clump size in bytes }
  48.         nxFreeFN:                LONGINT;                                { next free file number }
  49.         btClpSize:                LONGINT;                                { B-Tree clump size in bytes }
  50.         rsrv1:                    INTEGER;                                { reserved }
  51.         rsrv2:                    INTEGER;                                { reserved }
  52.         rsrv3:                    INTEGER;                                { reserved }
  53.     END;
  54. {$IFC SystemSevenOrLater }
  55.  
  56. PROCEDURE DILoad;
  57.     {$IFC NOT GENERATINGCFM}
  58.     INLINE $7002, $3F00, $A9E9;
  59.     {$ENDC}
  60. PROCEDURE DIUnload;
  61.     {$IFC NOT GENERATINGCFM}
  62.     INLINE $7004, $3F00, $A9E9;
  63.     {$ENDC}
  64. FUNCTION DIBadMount(where: Point; evtMessage: LONGINT): INTEGER;
  65.     {$IFC NOT GENERATINGCFM}
  66.     INLINE $7000, $3F00, $A9E9;
  67.     {$ENDC}
  68. FUNCTION DIFormat(drvNum: INTEGER): OSErr;
  69.     {$IFC NOT GENERATINGCFM}
  70.     INLINE $7006, $3F00, $A9E9;
  71.     {$ENDC}
  72. FUNCTION DIVerify(drvNum: INTEGER): OSErr;
  73.     {$IFC NOT GENERATINGCFM}
  74.     INLINE $7008, $3F00, $A9E9;
  75.     {$ENDC}
  76. FUNCTION DIZero(drvNum: INTEGER; volName: ConstStr255Param): OSErr;
  77.     {$IFC NOT GENERATINGCFM}
  78.     INLINE $700A, $3F00, $A9E9;
  79.     {$ENDC}
  80. {$ELSEC}
  81.  
  82. PROCEDURE DILoad;
  83. PROCEDURE DIUnload;
  84. FUNCTION DIBadMount(where: Point; evtMessage: LONGINT): INTEGER;
  85. FUNCTION DIFormat(drvNum: INTEGER): OSErr;
  86. FUNCTION DIVerify(drvNum: INTEGER): OSErr;
  87. FUNCTION DIZero(drvNum: INTEGER; volName: ConstStr255Param): OSErr;
  88. {$ENDC}
  89.  
  90. {$ALIGN RESET}
  91. {$POP}
  92.  
  93. {$SETC UsingIncludes := DiskInitIncludes}
  94.  
  95. {$ENDC} {__DISKINIT__}
  96.  
  97. {$IFC NOT UsingIncludes}
  98.  END.
  99. {$ENDC}
  100.